package com.ktwlsoft.archivemanage.domain.dao.repository.customAnalysis;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.ktwlsoft.archivemanage.domain.dao.entity.customAnalysis.AnalysisIndex;

/**
 * analysis_index--指标
 *
 * @author zhuhe on 2019-11-27 15:32:02
 * @version 1.0
 */
@Mapper
public interface IAnalysisIndexMapper {
	
	/**
	 * 查询列表 on 2019-11-27 15:32:02
	 * @param analysisIndex analysisIndex
	 * @return List<AnalysisIndex>
	 */
	List<AnalysisIndex> findList(AnalysisIndex analysisIndex);
	
	
	/**
	 * 根据id查询信息 on 2019-11-27 15:32:02
	 * @param id id
	 * @return AnalysisIndex
	 */
	AnalysisIndex getById(Long id);

	/**
	 * 根据分析ID查询信息 on 2019-11-27 15:32:02
	 * @param analysisId analysisId
	 * @return AnalysisIndex
	 */
	List<AnalysisIndex> getByAnalysisId(Long analysisId);
	
	/**
	 * 根据id删除信息 on 2019-11-27 15:32:02
	 * @param id id
	 * @return int
	 */
	int deleteById(Long id);

	/**
	  * 根据自助分析id删除信息 on 2019/11/27 16:28
	  *
	  * @param analysisId analysisId
	  * @return int
	  */
	int deleteByAnalysisId(Long analysisId);

	/**
	 * 根据id集合批量删除信息 on 2019-11-27 15:32:02
	 * @param ids ids
	 * @return int
	 */
	int deleteByIds(List<Long> ids);

	/**
	 * 插入 on 2019-11-27 15:32:02
	 * @param analysisIndex analysisIndex
	 * @return int
	 */
    int insert(AnalysisIndex analysisIndex);

    /**
      * 批量新增 on 2019/11/27 17:44
      *
      * @param list list
      * @return int
      * @throws
      */
    int manyInsert(List<AnalysisIndex> list);

	/**
	 * 更新 on 2019-11-27 15:32:02
	 * @param analysisIndex analysisIndex
	 * @return int
	 */
    int update(AnalysisIndex analysisIndex);
}
